﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WizardControlPage.aspx.cs" Inherits="DividendKPI_Proto_1.WizardControlPage" %>
<%@ Register
    Assembly="AjaxControlToolkit"
    Namespace="AjaxControlToolkit"
    TagPrefix="ajaxToolkit" %>
    
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <asp:Wizard ID="Wizard1" runat="server" ActiveStepIndex="2" BackColor="#E6E2D8" 
        BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
        Font-Names="Verdana" Font-Size="0.8em" Height="349px" Width="818px">
        <HeaderStyle BackColor="#666666" BorderColor="#E6E2D8" BorderStyle="Solid" 
            BorderWidth="2px" Font-Bold="True" Font-Size="0.9em" ForeColor="White" 
            HorizontalAlign="Center" />
        <NavigationButtonStyle BackColor="White" BorderColor="#C5BBAF" 
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" 
            ForeColor="#1C5E55" />
        <SideBarButtonStyle ForeColor="White" />
        <SideBarStyle BackColor="#1C5E55" Font-Size="0.9em" VerticalAlign="Top" />
        <StepStyle BackColor="#F7F6F3" BorderColor="#E6E2D8" BorderStyle="Solid" 
            BorderWidth="2px" />
        <WizardSteps>
            <asp:WizardStep runat="server" title="Choose Exchanges">
                <table class="style1">
                    <tr>
                        <td>
                            <asp:TreeView ID="TreeView1" runat="server" ShowLines="True">
                                <Nodes>
                                    <asp:TreeNode Text="UK" Value="UK">
                                        <asp:TreeNode ShowCheckBox="True" Text="LSE" Value="LSE"></asp:TreeNode>
                                    </asp:TreeNode>
                                    <asp:TreeNode Text="USA" Value="USA">
                                        <asp:TreeNode ShowCheckBox="True" Text="NYSE" Value="NYSE"></asp:TreeNode>
                                        <asp:TreeNode ShowCheckBox="True" Text="ASE" Value="ASE"></asp:TreeNode>
                                        <asp:TreeNode ShowCheckBox="True" Text="NASDAQ" Value="NASDAQ"></asp:TreeNode>
                                    </asp:TreeNode>
                                    <asp:TreeNode Text="South Africa" Value="South Africa">
                                        <asp:TreeNode ShowCheckBox="True" Text="JSE" Value="JSE"></asp:TreeNode>
                                    </asp:TreeNode>
                                    <asp:TreeNode ShowCheckBox="False" Text="Germany" Value="Germany">
                                        <asp:TreeNode ShowCheckBox="True" Text="DAX" Value="DAX"></asp:TreeNode>
                                    </asp:TreeNode>
                                    <asp:TreeNode Text="Scandinavia" Value="Scandinavia">
                                        <asp:TreeNode ShowCheckBox="True" Text="OMX" Value="OMX"></asp:TreeNode>
                                    </asp:TreeNode>
                                </Nodes>
                            </asp:TreeView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </asp:WizardStep>
            <asp:WizardStep runat="server" title="Choose KPIs to be applied">
                <table class="style1">
                    <tr>
                        <td>
                            <asp:TreeView ID="TreeView3" runat="server" Width="827px">
                                <Nodes>
                                    <asp:TreeNode ShowCheckBox="True" 
                                        Text="KPI - Dividend yield currently greater than X%" 
                                        Value="FTSE 100"></asp:TreeNode>                                    
                                    <asp:TreeNode ShowCheckBox="True" 
                                        Text="KPI - Dividend payout date within X months in the future " Value="JSE">
                                    </asp:TreeNode>
                                    <asp:TreeNode ShowCheckBox="True" 
                                        Text="KPI - Dividend Lifespan Increase Frequency between X and Y (User would choose this 3 times to get )" 
                                        Value="KPI - Dividend Lifespan Increase Frequency between X and Y (User would choose this 3 times to get )">
                                        <asp:TreeNode ShowCheckBox="True" 
                                            Text="KPI - Frequency of Dividend Increase between X% and Y% (User would choose this 3 times to get )" 
                                            Value="KPI - Frequency of Dividend Increase between X% and Y% (User would choose this 3 times to get )">
                                            <asp:TreeNode ShowCheckBox="True" 
                                                Text="KPI - Output between X% and Y% Structure   (User would choose this 3 times to get ) " 
                                                Value="KPI - Output between X% and Y% Structure   (User would choose this 3 times to get ) ">
                                            </asp:TreeNode>
                                            <asp:TreeNode ShowCheckBox="True" 
                                                Text="KPI - Output between X% and Y% Structure " 
                                                Value="KPI - Output between X% and Y% Structure "></asp:TreeNode>
                                            <asp:TreeNode ShowCheckBox="True" 
                                                Text="KPI - Output between X% and Y% Structure " 
                                                Value="KPI - Output between X% and Y% Structure "></asp:TreeNode>
                                        </asp:TreeNode>
                                    </asp:TreeNode>
                                    <asp:TreeNode ShowCheckBox="True" 
                                        Text="KPI - Dividend Lifespan Increase Frequency between X and Y " 
                                        Value="KPI - Dividend Lifespan Increase Frequency between X and Y ">
                                        <asp:TreeNode ShowCheckBox="True" 
                                            Text="KPI - Frequency of Dividend Increase between X% and Y% " 
                                            Value="KPI - Frequency of Dividend Increase between X% and Y% ">
                                            <asp:TreeNode ShowCheckBox="True" 
                                                Text="KPI - Output between X% and Y% Structure   " 
                                                Value="KPI - Output between X% and Y% Structure   "></asp:TreeNode>
                                            <asp:TreeNode ShowCheckBox="True" 
                                                Text="KPI - Output between X% and Y% Structure " 
                                                Value="KPI - Output between X% and Y% Structure "></asp:TreeNode>
                                            <asp:TreeNode ShowCheckBox="True" 
                                                Text="KPI - Output between X% and Y% Structure " 
                                                Value="KPI - Output between X% and Y% Structure "></asp:TreeNode>
                                        </asp:TreeNode>
                                    </asp:TreeNode>
                                    <asp:TreeNode ShowCheckBox="True" 
                                        Text="KPI - Dividend Lifespan Increase Frequency between X and Y " 
                                        Value="KPI - Dividend Lifespan Increase Frequency between X and Y ">
                                        <asp:TreeNode ShowCheckBox="True" 
                                            Text="KPI - Frequency of Dividend Increase between X% and Y% " 
                                            Value="KPI - Frequency of Dividend Increase between X% and Y% ">
                                            <asp:TreeNode ShowCheckBox="True" 
                                                Text="KPI - Output between X% and Y% Structure   " 
                                                Value="KPI - Output between X% and Y% Structure   "></asp:TreeNode>
                                            <asp:TreeNode ShowCheckBox="True" 
                                                Text="KPI - Output between X% and Y% Structure " 
                                                Value="KPI - Output between X% and Y% Structure "></asp:TreeNode>
                                            <asp:TreeNode ShowCheckBox="True" 
                                                Text="KPI - Output between X% and Y% Structure " 
                                                Value="KPI - Output between X% and Y% Structure "></asp:TreeNode>
                                        </asp:TreeNode>
                                    </asp:TreeNode>
                                    <asp:TreeNode ShowCheckBox="True" 
                                        Text="KPI - Consecutive Dividend Break Frequency of less than X " 
                                        Value="KPI - Consecutive Dividend Break Frequency of less than X ">
                                    </asp:TreeNode>
                                </Nodes>
                            </asp:TreeView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </asp:WizardStep>
            <asp:WizardStep runat="server" Title="AccordianChoice">
            <ajaxToolkit:ToolkitScriptManager runat="server" ID="ScriptManager1">
            </ajaxToolkit:ToolkitScriptManager>
                <br />
                <table class="style1">
                    <tr>
                        <td>
            <ajaxToolkit:Accordion ID="MyAccordion" runat="server" SelectedIndex="0"
            HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
            ContentCssClass="accordionContent" FadeTransitions="false" FramesPerSecond="40" 
            TransitionDuration="250" AutoSize="None" RequireOpenedPane="false" 
                                SuppressHeaderPostbacks="true" Width="100%">
           <Panes>
            <ajaxToolkit:AccordionPane ID="AccordionPane1" runat="server">
                <Header>
                    
                    <a href="" class="accordionLink">KPI - Dividend yield currently greater than X% </a>                
                </Header>
                <Content> 
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server"  >  
                    <ContentTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                    <asp:TextBox ID="TextBox1" width="100%" runat="server">{Latest Dividend Paid X Dividend Payment Frequency} / Stock Price  >= user input </asp:TextBox>
                    <asp:Button ID="Button2" runat="server" Text="+" /><asp:Button ID="Button3" runat="server" Text="-" />
                    </ContentTemplate>
                    </asp:UpdatePanel>                                 
                </Content>
            </ajaxToolkit:AccordionPane>
            <ajaxToolkit:AccordionPane ID="AccordionPane2" runat="server">
                <Header><a href="" class="accordionLink">KPI - Dividend payout date within X months in the future</a></Header>
                <Content>
                    <asp:UpdatePanel ID="update" updatemode="Conditional"  runat="server">                    
                    <ContentTemplate>
                    <asp:CheckBox ID="CheckBox2" runat="server" />
                        <asp:TextBox ID="TextBox2" width="100%"  runat="server"> Dividend Ex Date <= user input</asp:TextBox>
                        <asp:Button ID="Button4" runat="server" Text="+" /><asp:Button ID="Button5" runat="server" Text="-" />    
                        </ContentTemplate>                       
                    </asp:UpdatePanel>                                    
                </Content>
            </ajaxToolkit:AccordionPane>
            <ajaxToolkit:AccordionPane ID="AccordionPane3" runat="server">
                <Header><a href="" class="accordionLink">KPI - Dividend Lifespan Increase Frequency between X and Y</a></Header>
                <Content>
                   <asp:UpdatePanel ID="UpdatePanel2"  updatemode="Conditional"  runat="server">                    
                    <ContentTemplate>
                    <asp:CheckBox ID="CheckBox3" runat="server" />
                        <asp:TextBox ID="TextBox3"  width="100%" runat="server"> user input >= (Total Count of all subsequent Dividend increases/Total Count of all Dividend occurrences)*100 > user input </asp:TextBox>
                        <asp:Button ID="Button6" runat="server" Text="+" /><asp:Button ID="Button7" runat="server" Text="-" />    
                        </ContentTemplate>                       
                    </asp:UpdatePanel>  
                                                   
                   <ajaxToolkit:Accordion ID="Accordion1" runat="server" SelectedIndex="0"
            HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
            ContentCssClass="accordionContent" FadeTransitions="false" FramesPerSecond="40" 
            TransitionDuration="250" AutoSize="None" RequireOpenedPane="false" SuppressHeaderPostbacks="true" Width="100%">
           <Panes>
            <ajaxToolkit:AccordionPane ID="AccordionPane7" runat="server">
                <Header>
                    <a href="" class="accordionLink">KPI - Frequency of Dividend Increase between X% and Y% </a></Header>
                <Content>
                    <asp:UpdatePanel ID="UpdatePanel6"  updatemode="Conditional"  runat="server">                    
                    <ContentTemplate>
                    <asp:CheckBox ID="CheckBox8" runat="server" />
                        <asp:TextBox ID="TextBox7"  width="100%" runat="server"> user input >= Count{Dividend YoY change in percentage} > user input </asp:TextBox>
                        <asp:Button ID="Button14" runat="server" Text="+" /><asp:Button ID="Button15" runat="server" Text="-" />    
                        </ContentTemplate>                       
                    </asp:UpdatePanel>
                    <ajaxToolkit:Accordion ID="Accordion2" runat="server" SelectedIndex="0"
            HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
            ContentCssClass="accordionContent" FadeTransitions="false" FramesPerSecond="40" 
            TransitionDuration="250" AutoSize="None" RequireOpenedPane="false" SuppressHeaderPostbacks="true" Width="100%">
           <Panes>
            <ajaxToolkit:AccordionPane ID="AccordionPane4" runat="server">
                <Header>
                    <a href="" class="accordionLink">KPI - Output between X% and Y% Structure</a></Header>
                <Content>
                    <asp:UpdatePanel ID="UpdatePanel3"  updatemode="Conditional"  runat="server">                    
                    <ContentTemplate>
                    <asp:CheckBox ID="CheckBox4" runat="server" />
                        <asp:TextBox ID="TextBox4"  width="100%" runat="server">   user input >= KPI Output > user input   </asp:TextBox>
                        <asp:Button ID="Button8" runat="server" Text="+" /><asp:Button ID="Button9" runat="server" Text="-" />    
                        </ContentTemplate>                       
                    </asp:UpdatePanel>                                          
                </Content>
            </ajaxToolkit:AccordionPane>
            </Panes>
            </ajaxToolkit:Accordion>           
                </Content>
            </ajaxToolkit:AccordionPane>
            </Panes>
            </ajaxToolkit:Accordion>                    
            </Content>
            </ajaxToolkit:AccordionPane>                                           
            <ajaxToolkit:AccordionPane ID="AccordionPane6" runat="server">
                <Header><a href="" class="accordionLink">KPI - Consecutive Dividend Break Frequency of less than X</a></Header>
                <Content>                                  
                  <asp:UpdatePanel ID="UpdatePanel5" runat="server">                    
                    <ContentTemplate>
                    <asp:CheckBox ID="CheckBox5" runat="server" />
                        <asp:TextBox ID="TextBox6" width="100%"  runat="server">   Yearly Dividend Breaks <= user input </asp:TextBox>
                        <asp:Button ID="Button12" runat="server" Text="+" /><asp:Button ID="Button13" runat="server" Text="-" />    
                        </ContentTemplate>                       
                    </asp:UpdatePanel>           
                </Content>
            </ajaxToolkit:AccordionPane>
             </Panes>
        </ajaxToolkit:Accordion>
                            
                         </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </asp:WizardStep>
            <asp:WizardStep runat="server" StepType="Complete" Title="Confirm">
                <table class="style1">
                    <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" 
                                Text="Save &amp; Publish" />
                        </td>
                    </tr>
                </table>
            </asp:WizardStep>
        </WizardSteps>
    </asp:Wizard>
</asp:Content>
